using System;
using UnityEngine;
[Serializable]
public class EnemyParameter : Parameter
{
    [Header("移动")]
    public float currentSpeed;
    public int facingDirection = 1; // 角色面向的方向，1右 -1左
    public float moveSpeed;         // 移动速度
    public float chaseSpeed;        // 追击速度
    public float idleTime;          // 空闲时间
    [HideInInspector] public Transform target => check.chaseTarget ? check.chaseTarget : check.attackTarget; // 目标对象
    // [Header("攻击")]
    public bool isChase => check.isCheckChase && target; //追击
    public bool isAttack => check.isCheckAttack && target; //攻击

    
    [Header("检测")]
    [HideInInspector] public EnemyPhysicsCheck check;

}
